extends StateBase

##飞船节点
@export var ship: BaseShip

func enter() -> void:
	super.enter()
	ship.status_ui.hide_UI(true)
	ship.animation_player.play("dying")
	ship.hurtbox.monitorable = false

func physics_process_update(delta: float) -> void:
	super.physics_process_update(delta)
	if not ship.animation_player.is_playing():
		ship.die()
	
